package cn.wenhaha.app.data.bean.dto;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 数据库传输类
 * --------
 *
 * @author ：wyndem
 * @Date ：Created in 2022-04-19 19:23
 */
@Data
public class DBConfigDTO {

    private Integer id;
    @NotEmpty(message = "数据库别名不能为空")
    private  String aliasName;
    private String parameter;
    @NotEmpty(message = "数据库名称不能为空")
    private String tableName;
    @NotEmpty(message = "host不能为空")
    private String host;
    @NotNull(message = "端口不能为空")
    private Integer port;
    @NotEmpty(message = "账号不能为空")
    private String name;
    @NotEmpty(message = "密码不能为空")
    private String password;
    private String remake;

}
